package com.example.fengshoutong.bean;

import java.util.Date;

public class Contact {
    /**
     * 名字
     */
    private String name;

    /**
     * 消息
     */
    private String message;

    /**
     * 最后一次聊天的时间
     */
    private Date time;

    public Contact(String name, String message, Date time) {
        this.name = name;
        this.message = message;
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Contact{" +
                "name='" + name + '\'' +
                ", message='" + message + '\'' +
                ", time=" + time +
                '}';
    }
}
